import com.xiaoyu.company.model.companyOne;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * Comments：
 * Author：yuxin
 * Create Date：2017-03-16
 * Modified By：
 * Modified Date：
 * Why & What is modified：
 * Version：v1.0
 */

public class test {
    public static void main(String[] args) {
       /* Dog dog=new Dog();
        dog.setName("xiaogou");
        dog.setAge(2);
        dog.setDD(null);
        Gson gson=new Gson();
        Pig pig= gson.fromJson(gson.toJson(dog),Pig.class);
        String a="xiaoyu";
        Boolean aa= StringUtils.isNumber("1,2");
        Boolean xiaoyu= StringUtils.isNumberYX("000,2122(4,5,6");
        System.out.println(aa);
        System.out.println(xiaoyu);
        int [] abc={1,2,3};
        String[] zxc={"z","x","c"};
        for (int d:abc){
            System.out.println(d);
        }
        for (String z:zxc){
            System.out.println(z);
        }*/
        Map<String,Object> linkMap=new LinkedHashMap<String,Object>();
        linkMap.put("张", "a");
        linkMap.put("王", "1");
        linkMap.put("王", "b");
        linkMap.put("李", "c");
        linkMap.put("赵", "d");
        for (Map.Entry<String, Object> entry : linkMap.entrySet()) {
            System.out.println(entry.getKey() + "---" + entry.getValue());
        }
        System.out.println("--------------------");
        Map<String,Object> HashMap=new HashMap<String,Object>();
        HashMap.put("张", "a");
        HashMap.put("王", "1");
        HashMap.put("王", "b");
        HashMap.put("李", "c");
        HashMap.put("赵", "d");
        for (Map.Entry<String, Object> entry : HashMap.entrySet()) {
            System.out.println(entry.getKey() + "---" + entry.getValue());
        }
        BigDecimal aaaa= new BigDecimal("0000.000000").setScale(2);
        System.out.println(aaaa);
        BigDecimal b1 = new BigDecimal("321.231231");
        BigDecimal b2 = new BigDecimal(321.231231);
        System.out.println(b1);
        System.out.println(b2);
        String sss="0123456789";
        System.out.println(  sss.substring(1,3));
        companyOne one=new companyOne();
        one.seta("a");
        one.setA("A");
        System.out.println(one.geta());
        System.out.println(one.getA());
    }
}
